home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / program / shrlk201.zip / _SETUP.1 / Unlock.pas < prev   
Pascal/Delphi Source File  |  1997-07-22  |  748b  |  41 lines

  1. unit Unlock;
  2.  
  3. interface
  4.  
  5. uses
  6.   Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls;
  7.  
  8. type
  9.   TfrmUnlocker = class(TForm)
  10.     lblName: TLabel;
  11.     lblUnlockCode: TLabel;
  12.     txtUnlockCode: TEdit;
  13.     txtName: TEdit;
  14.     btnOk: TButton;
  15.     Label1: TLabel;
  16.     txtCompanyName: TEdit;
  17.     procedure btnOkClick(Sender: TObject);
  18.   private
  19.     { Private declarations }
  20.   public
  21.     { Public declarations }
  22.   end;
  23.  
  24. var
  25.   frmUnlocker: TfrmUnlocker;
  26.  
  27. implementation
  28.  
  29. {$R *.DFM}
  30.  
  31. procedure TfrmUnlocker.btnOkClick(Sender: TObject);
  32. begin
  33.   if txtName.Text = '' then
  34.     begin
  35.       MessageDlg('Please enter a name', mtError, [mbOk], 0);
  36.       ModalResult := mrNone;
  37.     end;
  38. end;
  39.  
  40. end.
  41.